/*
 * Copyright Iain Sproat, 2009
 * 
 *
 */
using System;

namespace FreeBase.Domain
{
	/// <summary>
	/// Description of FBUri.
	/// </summary>
	public class FBUri : FBValueType<Uri>
	{
		public FBUri()
		{
		}
		public FBUri( string uri )
		{
			this.Value = new Uri(uri);
		}
		
		public override Uri Value { get; set; }
		
		public static implicit operator FBUri( Uri uriValue )
		{
			FBUri u = new FBUri();
			u.Value = uriValue;
			return u;
		}
		
		public static implicit operator FBUri( string uriValue )
		{
			FBUri u = new FBUri();
			u.Value = new Uri( uriValue );
			return u;
		}
	}
}
